<?php


namespace app\common\command;

class ShuanQSystemUpdate extends \think\console\Command
{
	protected function configure()
	{
		$this->setName("ShuanQSystemUpdate")->setDescription("栓Q验证系统更新命令");
	}
	protected function execute(\think\console\Input $input, \think\console\Output $output)
	{
		$system = new \app\common\system\System();
		$res = $system->aimakeji_version_update(false, true);
		if ($res["code"] == 1) {
			echo $res["msg"] . PHP_EOL;
		} else {
			echo $res["msg"] . PHP_EOL;
		}
	}
}